home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / biff_and.swf / scripts / DefineSprite_34_BlueFish / frame_2 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  9.1 KB  |  290 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 995 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = -1825 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 595)
  9.    {
  10.       set("\x01",eval("\x01") + 325);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 175)
  14.    {
  15.       set("\x01",eval("\x01") + 247);
  16.       ┬º┬ºpush(!function ┬º\x01\x02┬º()
  17.       {
  18.          return 995 % 511 * 5;
  19.       });
  20.    }
  21.    else
  22.    {
  23.       if(eval("\x01") == 710)
  24.       {
  25.          set("\x01",eval("\x01") - 687);
  26.          break;
  27.       }
  28.       if(eval("\x01") == 71)
  29.       {
  30.          set("\x01",eval("\x01") + 104);
  31.          ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  32.          {
  33.             return 995 % 511 * 5;
  34.          }));
  35.       }
  36.       else if(eval("\x01") == 702)
  37.       {
  38.          set("\x01",eval("\x01") - 25);
  39.       }
  40.       else if(eval("\x01") == 422)
  41.       {
  42.          set("\x01",eval("\x01") + 280);
  43.          if(function ┬º\x01\x02┬º()
  44.          {
  45.             return 995 % 511 * 5;
  46.          })
  47.          {
  48.             set("\x01",eval("\x01") - 25);
  49.          }
  50.       }
  51.       else
  52.       {
  53.          if(eval("\x01") == 677)
  54.          {
  55.             set("\x01",eval("\x01") - 284);
  56.             FishControl = function()
  57.             {
  58.                pos = this._x;
  59.                offsetBiffX = _root.Biff._x - this._x;
  60.                offsetBiffY = Math.abs(_root.Biff._y - this._y);
  61.                offsetBaffX = _root.Baff._x - this._x;
  62.                offsetBaffY = Math.abs(_root.Baff._y - this._y);
  63.                if(offsetBiffX > -150 && offsetBiffX < 0 && offsetBiffY < 30 || offsetBaffX > -150 && offsetBaffX < 0 && offsetBaffY < 30)
  64.                {
  65.                   gotoAndStop(3);
  66.                   xSpeed += 0.25;
  67.                }
  68.                else
  69.                {
  70.                   gotoAndStop(2);
  71.                }
  72.                if(pos < -150 || pos > 700)
  73.                {
  74.                   _root.noFishesOK = _root.noFishesOK + 1;
  75.                   resetEyesBiff();
  76.                   resetEyesBaff();
  77.                   _root.blueCount = _root.blueCount - 1;
  78.                   this.removeMovieClip();
  79.                }
  80.                this._x -= xSpeed;
  81.             };
  82.             resetEyesBiff = function()
  83.             {
  84.                clearInterval(colReniBiff);
  85.                _root.Biff.gotoAndStop(1);
  86.             };
  87.             colControlBiff = function()
  88.             {
  89.                if(this.hitTest(_root.Biff) && _root.Biff.shield._alpha < 5)
  90.                {
  91.                   _root.Biff.gotoAndStop(2);
  92.                   _root.dragallowBiff = 0;
  93.                   colReniBiff = setInterval(resetEyesBiff,_root.stunned);
  94.                   _root.energy = _root.energy - 1;
  95.                   _root.SpawnBlood(_root.Biff._x,_root.Biff._y);
  96.                }
  97.             };
  98.             resetEyesBaff = function()
  99.             {
  100.                clearInterval(colReniBaff);
  101.                _root.Baff.gotoAndStop(1);
  102.                _root.dragallowBaff = 1;
  103.             };
  104.             colControlBaff = function()
  105.             {
  106.                if(this.hitTest(_root.Baff) && _root.Biff.shield._alpha < 5)
  107.                {
  108.                   _root.Baff.gotoAndStop(2);
  109.                   _root.dragallowBaff = 0;
  110.                   colReniBaff = setInterval(resetEyesBaff,_root.stunned);
  111.                   _root.energy = _root.energy - 1;
  112.                   _root.SpawnBlood(_root.Baff._x,_root.Baff._y);
  113.                }
  114.             };
  115.             onEnterFrame = function()
  116.             {
  117.                FishControl();
  118.                colControlBiff();
  119.                colControlBaff();
  120.                if(_root.countLevel > 10)
  121.                {
  122.                   this._rotation = Math.sin((- _root.absFrames) / 30) * 10;
  123.                   this._y += Math.sin(_root.absFrames / 30) * sinfact;
  124.                }
  125.                if(_root._currentFrame != 15)
  126.                {
  127.                   this.removeMovieClip();
  128.                }
  129.                if(_root.lineCol.hitTest(this._x,this._y,true))
  130.                {
  131.                   _root.noFishesOK = _root.noFishesOK + 1;
  132.                   _root.blueCount = _root.blueCount - 1;
  133.                   if(_root.linecolor == 2)
  134.                   {
  135.                      _root.score += _root.countLevel * 10;
  136.                      onEnterFrame = function()
  137.                      {
  138.                         this._alpha -= 5;
  139.                         this._x = this._x - 1;
  140.                         this._y -= 1.5;
  141.                         if(this._alpha < 5)
  142.                         {
  143.                            this.removeMovieClip();
  144.                         }
  145.                      };
  146.                      this.Tail.Anim.stop();
  147.                      x = 0;
  148.                      while(x < 10)
  149.                      {
  150.                         _root.attachMovie("Bloodstar","Bloodstar" + _root.bloodcount,_root.bloodcount,{_x:this._x,_y:this._y});
  151.                         _root.bloodcount = _root.bloodcount + 1;
  152.                         if(_root.bloodcount > 85)
  153.                         {
  154.                            _root.bloodcount = 20;
  155.                         }
  156.                         x++;
  157.                      }
  158.                   }
  159.                   else
  160.                   {
  161.                      if(_root.score > _root.countLevel * 5)
  162.                      {
  163.                         _root.score -= _root.countLevel * 5;
  164.                      }
  165.                      x = 0;
  166.                      while(x < 18)
  167.                      {
  168.                         _root.attachMovie("Bloodfree","Bloodfree" + _root.bloodcount,_root.bloodcount,{_x:this._x,_y:this._y});
  169.                         _root.bloodcount = _root.bloodcount + 1;
  170.                         if(_root.bloodcount > 85)
  171.                         {
  172.                            _root.bloodcount = 20;
  173.                         }
  174.                         this._alpha -= 3;
  175.                         x++;
  176.                      }
  177.                      this.removeMovieClip();
  178.                   }
  179.                }
  180.             };
  181.             stop();
  182.             break;
  183.          }
  184.          if(eval("\x01") == 920)
  185.          {
  186.             set("\x01",eval("\x01") - 523);
  187.             if(function ┬º\x01\x02┬º()
  188.             {
  189.                return 995 % 511 * 5;
  190.             })
  191.             {
  192.                set("\x01",eval("\x01") + 294);
  193.             }
  194.          }
  195.          else
  196.          {
  197.             if(eval("\x01") == 397)
  198.             {
  199.                set("\x01",eval("\x01") + 294);
  200.                while(true)
  201.                {
  202.                   _loc2_.Bloodstar("bloodcount","bloodcount" + _loc2_.x,_loc2_.x,{(┬º┬ºpop()):┬º┬ºpop()[function ┬º\x01\x02┬º()
  203.                   {
  204.                      return 995 % 511 * 5;
  205.                   }],_y:_loc1_._y});
  206.                   _loc2_.x = _loc2_.x + 1;
  207.                   if(_loc2_.x > 85)
  208.                   {
  209.                      _loc2_.x = 20;
  210.                   }
  211.                   stop++;
  212.                   if(stop >= 10)
  213.                   {
  214.                      break;
  215.                   }
  216.                   ┬º┬ºpush("_x");
  217.                   ┬º┬ºpush(_loc1_);
  218.                   ┬º┬ºpush("_x");
  219.                }
  220.                set(┬º┬ºpop(),function ┬º\x01\x02┬º()
  221.                {
  222.                   return 995 % 511 * 5;
  223.                });
  224.                stop();
  225.                break;
  226.             }
  227.             if(eval("\x01") == 668)
  228.             {
  229.                set("\x01",eval("\x01") + 256);
  230.                ┬º┬ºpush("\x0f");
  231.                ┬º┬ºpush(1);
  232.             }
  233.             else if(eval("\x01") == 691)
  234.             {
  235.                set("\x01",eval("\x01") + 275);
  236.             }
  237.             else if(eval("\x01") == 747)
  238.             {
  239.                set("\x01",eval("\x01") - 37);
  240.                if(function ┬º\x01\x02┬º()
  241.                {
  242.                   return 995 % 511 * 5;
  243.                })
  244.                {
  245.                   set("\x01",eval("\x01") - 687);
  246.                }
  247.             }
  248.             else if(eval("\x01") == 61)
  249.             {
  250.                set("\x01",eval("\x01") + 10);
  251.                ┬º┬ºpush("\x0f");
  252.             }
  253.             else if(eval("\x01") == 23)
  254.             {
  255.                set("\x01",eval("\x01") + 645);
  256.             }
  257.             else if(eval("\x01") == 966)
  258.             {
  259.                set("\x01",eval("\x01") - 219);
  260.                ┬º┬ºpush(true);
  261.             }
  262.             else if(eval("\x01") == 284)
  263.             {
  264.                set("\x01",eval("\x01") + 682);
  265.             }
  266.             else if(eval("\x01") == 365)
  267.             {
  268.                set("\x01",eval("\x01") + 303);
  269.             }
  270.             else
  271.             {
  272.                if(eval("\x01") != 924)
  273.                {
  274.                   if(eval("\x01") == 393)
  275.                   {
  276.                      set("\x01",eval("\x01") - 393);
  277.                   }
  278.                   break;
  279.                }
  280.                set("\x01",eval("\x01") - 863);
  281.                var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  282.                {
  283.                   return 995 % 511 * 5;
  284.                };
  285.             }
  286.          }
  287.       }
  288.    }
  289. }
  290.